<?php



class TblGapMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TblGapMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('mgig');

		$tMap = $this->dbMap->addTable('tbl_gap');
		$tMap->setPhpName('TblGap');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('F_ID', 'FId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_DIST_ID', 'FDistId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_PARENTID', 'FParentid', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_LEFT', 'FLeft', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_RIGHT', 'FRight', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_LEVEL', 'FLevel', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('F_DATE', 'FDate', 'int', CreoleTypes::DATE, true, null);

		$tMap->addColumn('F_GAP', 'FGap', 'double', CreoleTypes::DECIMAL, true, 12);

	} 
} 